const { ccclass, property } = cc._decorator;
import LevelEditorDataMgr from "./LevelEditorDataMgr";

@ccclass
export default class EditorLowstItemCtrl extends cc.Component {
    @property
    row = null;
    @property
    col = null;
    @property
    isCanPlace = true;
    @property
    isPlace = false;
    @property
    isNeedPlace = false;
    @property
    relationPos = [];
    @property
    layerData = [];
    @property
    itemData = {};

    start() { }

    initData(e) {
        if (e) {
            this.row = e.row;
            this.col = e.col;
        }
    }

    updateBottomData(e) {
        LevelEditorDataMgr.updateBottomData(this.row, this.col, e);
    }

    deleteLowLayerData() {
        LevelEditorDataMgr.updateBottomData(this.row, this.col, "N");
    }
}